package com.greatwall.hip.cms.controller;

import com.greatwall.hip.cms.model.Req;
import com.greatwall.hip.cms.model.Result;
import com.greatwall.hip.cms.service.LyFkybqkService;
import com.greatwall.hip.cms.vo.DeptIndicatorAnalyseVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 分科医保指标(LyFkybqk)表控制层
 *
 * @author makejava
 * @since 2021-07-05 16:05:03
 */
@RestController
@Api(tags = "医保模块", value = "分科医保指标分析")
@RequestMapping("branchDeptAnalyse")
public class BranchDeptAnalyseController {
    /**
     * 服务对象
     */
    @Resource
    private LyFkybqkService lyFkybqkService;

    @ApiOperation("分科医保指标分析")
    @PostMapping("/indicatorAnalyse")
    public Result<DeptIndicatorAnalyseVO> indicatorAnalyse(@RequestBody Req request) {
        return Result.success(lyFkybqkService.queryDeptIndicatorAnalyse(request));
    }

}